/* eslint-disable */

import { AxiosRequestConfig } from 'axios';
import { request } from '../../utils/request';

export interface GetUniGetTrackPaymentRes {
  paymentModeId: number; // 付费模式id
  paymentType: number; // 付费类型，1.0，2.0，3.0
}

/**
 * 获取歌曲付费口径
 */
export async function getUniGetTrackPayment(
  data?: any,
  config?: AxiosRequestConfig,
): Promise<GetUniGetTrackPaymentRes> {
  return request(data, {
    url: '/uni/getTrackPayment',
    method: 'get',
    ...config,
  });
}

export type GetUniGetTrackCopyrightRes = Array<{
  cpCompanyId: number; // 版权公司id
  originCpCompanyId: number; // 原始版权公司id
  authProduct: string; // 授权产品
}>;

/**
 * 获取歌曲版权信息
 */
export async function getUniGetTrackCopyright(
  data?: any,
  config?: AxiosRequestConfig,
): Promise<GetUniGetTrackCopyrightRes> {
  return request(data, {
    url: '/uni/getTrackCopyright',
    method: 'get',
    ...config,
  });
}

export interface GetUniGetCompanyRes {
  companyName: string; // 公司名称
  companyOtherName: string; // 公司别名
}

/**
 * 获取公司信息
 */
export async function getUniGetCompany(
  data?: any,
  config?: AxiosRequestConfig,
): Promise<GetUniGetCompanyRes> {
  return request(data, {
    url: '/uni/getCompany',
    method: 'get',
    ...config,
  });
}

export interface GetUniGetAlbumRes {
  copyrightIdList: Array<number>;
  publicCompanyId: string; // 发行公司id
}

/**
 * 获取专辑信息
 */
export async function getUniGetAlbum(
  data?: any,
  config?: AxiosRequestConfig,
): Promise<GetUniGetAlbumRes> {
  return request(data, {
    url: '/uni/getAlbum',
    method: 'get',
    ...config,
  });
}
